<%@ page contentType="text/html" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<%@ include file="header.jsp" %>
		<div>
			<h3>Change Password</h3>
			<br/>
			<div id="notification">
			<% 
			   String bkup = (String)request.getAttribute("emailbkup");
			   if(bkup==null){
			     bkup="";
			   }
			   String error = (String)request.getAttribute("modifiederror");
			   String correct = (String)request.getAttribute("modifiedok");
			   if(error!=null){//hubo error
			      %> <p class="ui-state-error"><%= error %></p> <%
			   } else if(correct != null) {
			     %>  <p class="ui-state-highlight"><%= correct %></p> <%
			   }
			%>
			</div>
					<form method="POST" action="saveName" class="botones">
						<table>
							<tr>
								<td>New Name:</td>
								<td><input name="name" type="text" value="<%= bkup %>"/></td>
							</tr>
							<tr>
								<td></td>
								<td><input name="changename" type="submit" value="OK"></td>
								<td></td>
							</tr>
						</table>
					</form>
		</div>
	
<%@ include file="footer.jsp" %>